﻿using System;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020000A0 RID: 160
	public class FBIKBendGoal : MonoBehaviour
	{
		// Token: 0x0600055E RID: 1374 RVA: 0x00005682 File Offset: 0x00003882
		public void Start()
		{
			Debug.Log("FBIKBendGoal is deprecated, you can now a bend goal from the custom inspector of the FullBodyBipedIK component.");
		}

		// Token: 0x0600055F RID: 1375 RVA: 0x00034BF0 File Offset: 0x00032DF0
		public void Update()
		{
			if (this.ik == null)
			{
				return;
			}
			this.ik.solver.GetBendConstraint(this.chain).bendGoal = base.transform;
			this.ik.solver.GetBendConstraint(this.chain).weight = this.weight;
		}

		// Token: 0x04000440 RID: 1088
		public FullBodyBipedIK ik;

		// Token: 0x04000441 RID: 1089
		public FullBodyBipedChain chain;

		// Token: 0x04000442 RID: 1090
		public float weight;
	}
}
